package com.yxw.yxnet_cd_center.customer_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxw.yxnet_cd_center.customer_service.entity.YxCsCodeRuleEntity;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 编码规则
 * @author liuxin
 * @date 2023-09-20
 */
@Repository
public interface CodeRuleMapper extends BaseMapper<YxCsCodeRuleEntity> {

    /**
     * 编码序号和版本修改
     * @param ruleId
     * @param version
     * @return
     */
    int updateCodeRule(@Param("ruleId") Long ruleId, @Param("version")  String version);

    /**
     * 先查询当前编码
     * @param codeType
     * @return
     */
    YxCsCodeRuleEntity getCodeRuleByType(@Param("codeType") String codeType);
}
